package com.max.eshop.services;

import com.max.eshop.storage.Storage;

public class Services {
		Storage storage = new Storage();
	private BookService bookService = new BookService(storage);
	private OrderService orderService = new OrderService(storage);
	private ReqestService reqestService = new ReqestService(storage);

	public BookService getBookService() {
		return bookService;
	}

	public OrderService getOrderService() {
		return orderService;
	}

	public ReqestService getReqestService() {
		return reqestService;
	}

	public void load(String path) {
		storage.readFromFiles(path);
	}

	public void write() {
		storage.writeToFiles();
	}

}
